package com.walker.kuyun.util

import android.view.View


fun View.gone() {
    visibility = View.GONE
}

fun View.visible() {
    visibility = View.VISIBLE
}

fun View.invisible() {
    visibility = View.INVISIBLE
}

fun View.clickScale(scale: Float = 0.75f, duration: Long = 100) {
    animate()
        .scaleX(scale)
        .scaleY(scale)
        .setDuration(duration)
        .withEndAction {
            animate()
                .scaleX(1f)
                .scaleY(1f)
                .setDuration(duration)
                .start()
        }.start()
}
